package com.springboot.love.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * (Notice)实体类
 */
public class Notice implements Serializable {
    private static final long serialVersionUID = 434352327541328409L;
    /**
    * 公告id
    */
    @Setter
    @Getter
    @TableId(value = "notice_id", type = IdType.AUTO)
    private Integer noticeId;
    /**
    * 公告标题
    */
    @Setter
    @Getter
    @TableField(value = "title")
    private String title;
    /**
    * 公告内容
    */
    @Setter
    @Getter
    @TableField(value = "notice_content")
    private String noticeContent;
    /**
    * 公告访问数
    */
    @Setter
    @Getter
    @TableField(value = "notice_visited_count")
    private Integer noticeVisitedCount;
    /**
    * 公告创建时间
    */
    @Setter
    @Getter
    @TableField(value = "notice_create_time")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date noticeCreateTime;
}